package com.ymatou.userservice.service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*获取用户第三方账号接口Call
*FreeMaker Template自动生成代码
*/
public class GetUserThirdPartyAccountDtoCall extends YmatouBaseCall{
	private static String opurl ="json/reply/GetUserThirdPartyAccountDto";
	
	public GetUserThirdPartyAccountDtoCall() {
		super(EnvSetup.getSystemUrl("api_userservice"),opurl,"GET","PARAM");
	}
	
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	public List<Map<String, Object>> getResult(){
		List<Map<String, Object>> result = new ArrayList<Map<String, Object>>();
		result = (List<Map<String, Object>>) FormatUtil.GSONToObject(getString("Result"), List.class);
		return result;
	}
}